package test;

public class CustLoc {
	public int x;
	public int y;
	public int demand;
	
	public CustLoc(int x,int y, int demand){
		this.x = x;
		this.y = y;
		this.demand = demand;
	}
	
	public double distanceBetween(CustLoc c){
		int x1 = this.x;
		int x2= c.x;
		
		int y1=this.y;
		int y2=c.y;
		
		double distance = Math.sqrt((x2-x1)*(x2-x1) + (y2-y1)*(y2-y1));
		
		return distance;
	}
}
